import request from "@/utils/request";

// 首页

// 首页背调订单接口
export function getStoreOrder(data) {
  return request({
    url:
      "storeIndex/storeOrder/getStoreOrder?startTime=" +
      data.startTime +
      "&endTime=" +
      data.endTime,
    method: "get",
  });
}
// 首页公告信息接口
export function getAnnouncement() {
  return request({
    url: "storeIndex/storeStatistics/getAnnouncement",
    method: "get",
  });
}
// 首页账户余额接口
export function getStoreBalance() {
  return request({
    url: "storeIndex/storeStatistics/getStoreBalance",
    method: "get",
  });
}
// 首页带授权等信息接口
export function getAllStatistics() {
  return request({
    url: "storeIndex/storeStatistics/getAllStatistics",
    method: "get",
  });
}






// 数据统计
// 背调接口统计接口
export function getStatisticsSurvey(data) {
  return request({
    url:
      "statistics/statisticsSurvey/getStatisticsSurvey?startTime=" +
      data.startTime +
      "&endTime=" +
      data.endTime,
    method: "get",
    data: data,
  });
}
// 背调订单接口
export function getStatisticsOrder(data) {
  return request({
    url:
      "statistics/statisticsOrder/getStatisticsOrder?startTime=" +
      data.startTime +
      "&endTime=" +
      data.endTime,
    method: "get",
    data: data,
  });
}
//   代理商排行榜
export function getAgentRank() {
  return request({
    url: "statistics/statisticsAgentRank/getAgentRank",
    method: "get",
  });
}
//  商家排行榜
export function storeRank() {
  return request({
    url: "statistics/statisticsStoreRank/storeRank",
    method: "get",
  });
}
// 统计信息
export function getTotal() {
  return request({
    url: "statistics/statisticsDetails/getTotal",
    method: "get",
  });
}
export function getType() {
  return request({
    url: "statistics/statisticsDetails/getType",
    method: "get",
  });
}
